import request from "@/utils/request";

// 获取商品类型
export const getGoodsTypeAPI = (params) => {
  return request({
    url: "/mall/spuTypeList",
    method: "POST",
    data: params,
  });
};

// 获取商品列表
export const getGoodsListAPI = (params) => {
  return request({
    url: "/mall/spuList",
    method: "POST",
    data: params,
  });
};

// 获取商品详情
export const getGoodsDetailAPI = (params) => {
  return request({
    url: "/mall/skuDetail",
    method: "POST",
    data: params,
  });
};